﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using METU_CMT.Business;

namespace METU_CMT
{
    public partial class TeachingAssistantCourseMainScreen : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindCourseInfo();
            }
        }

        public void BindCourseInfo()
        {
            dtgInstructors.DataSource = EntityFactory.GetInstructorsOfCourse( );
            dtgInstructors.DataBind();

            dtgTAs.DataSource = EntityFactory.GetTeachingAssistantsOfCourse(EntityFactory.CourseId);
            dtgTAs.DataBind();
        }

        protected void OnLnkBtnAnnouncementsClicked(object sender, EventArgs e)
        {
            Response.Redirect("~/InstructorAnnouncementsMainScreen.aspx");
        }

        protected void OnLnkBtnScheduleClicked(object sender, EventArgs e)
        {
            Response.Redirect("~/InstructorScheduleMainScreen.aspx");
        }

        protected void OnLnkBtnLectureNotesClicked(object sender, EventArgs e)
        {
            Response.Redirect("~/InstructorLectureNotesMainScreen.aspx");
        }

        protected void OnLnkBtnTeamsClicked(object sender, EventArgs e)
        {
            Response.Redirect("~/EditProjectTeamScreen.aspx");
        }

        protected void OnLnkBtnReviewTeamsClicked(object sender, EventArgs e)
        {
            Response.Redirect("~/AssignReviewTeamScreen.aspx");
        }

    }
}